﻿IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'P_UpdateEndUserSessionLog')
	BEGIN
		DROP  Procedure [esf_sso].P_UpdateEndUserSessionLog
	END

GO

CREATE Procedure [esf_sso].P_UpdateEndUserSessionLog
	@pID	UNIQUEIDENTIFIER
   ,@pEndDateTime		DATETIME
AS

	UPDATE [esf_sso].[UserSessionLog]
	SET	[EndDateTime] = @pEndDateTime
    WHERE [ID] = @pID
    
GO